package org.example;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author：sun
 * @date：2023/10/25 21:24
 * @desc:
 * @version: 3.0
 */
@RestController
@RequestMapping("/generator")
public class generatorController {

    private final DocumentSqlService documentSqlService;

    @Autowired
    public generatorController(org.example.DocumentSqlService documentSqlService) {
        this.documentSqlService = documentSqlService;
    }

    /**
     * 生成数据库表结构文档
     */
    @RequestMapping("/generatorDocument")
    public void generatorDocument(){
        documentSqlService.generatorDocument();
    }
}
